import { Controller, Get } from '@nestjs/common';
import { StatsService } from './stats.service';

@Controller('stats')
export class StatsController {
  constructor(private readonly statsService: StatsService) {}

  @Get()
  async getStats() {
    const data = await this.statsService.getStats();
    return {
      code: 200,
      message: 'success',
      data,
    };
  }
}